<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>收货地址</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="806051910">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "806051910";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("useraddress.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建收货地址"
  			,"inport":"导入收货地址"
  			,"update":"修改收货地址"
  			,"detail":"收货地址详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#useraddressForm").form({
		"":function(){}
		,"userAddress.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"userAddress.member":function(el){
		}
		,"userAddress.mobile":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "电话号码最大长度为32个字符";
		}
		,"userAddress.realName":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "收货姓名最大长度为32个字符";
		}
		,"userAddress.sex":function(el){
		}
		,"userAddress.isDefault":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"userAddress.address":function(el){
		}
		,"userAddress.detailAddress":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "详细地址最大长度为32个字符";
		}
		,"userAddress.cityOrigin":function(el){
		}
		,"userAddress.fullAddress":function(el){
			if(el.value.length>225 && el.value.indexOf("[*]")==-1)
				return "地址全称最大长度为225个字符";
		}
		,"userAddress.longitude":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "经度最大长度为32个字符";
		}
		,"userAddress.latitude":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "纬度最大长度为32个字符";
		}
		,"userAddress.coordinate":function(el){
			if(el.value.length>225 && el.value.indexOf("[*]")==-1)
				return "坐标地址最大长度为225个字符";
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="UserAddress" id="useraddressForm" name="useraddressForm" target="jsoniframe" action="useraddress.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt" style="display:none;">
				温馨提示：请仔细填写收货地址相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("id_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"id"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{userAddress$id}}">
				{{userAddress$id}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$id}}">
			<input type="hidden" value="{{lz.htm(userAddress.id)}}" name="userAddress.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{userAddress.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.id$||userAddress.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("member_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"member"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"member"))))}}
	{{lz.set("member_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$member}}
	<dl lz:if="{{member_editable||member_readonly}}" class="ribs member  " major  ref="member">
		<dt>会员信息:</dt>
		<dd lz:if="{{member_editable}}" input="query">
			<lz:block lz:if="{{userAddress$member}}">
				{{userAddress$member}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$member}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/admin/users/member.query.do?value={param}" type="text" id="member" name="userAddress.member" text="{{lz.html(userAddress.member$||userAddress.member)}}" value="{{lz.htm(userAddress.member)}}" />
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#member').val())==''){return;};window.href('/admin/users/member.detail.html?key='+$('#member').val())"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{member_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="member">{{userAddress.member}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/users/member.details.html?key=userAddress.member}')">
			 {{lz.html(userAddress.member$||userAddress.member)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$member}}
	{{lz.set("mobile_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"mobile"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"mobile"))))}}
	{{lz.set("mobile_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$mobile}}
	<dl lz:if="{{mobile_editable||mobile_readonly}}" class="ribs mobile  " major  ref="mobile">
		<dt>电话号码:</dt>
		<dd lz:if="{{mobile_editable}}" input="text">
			<lz:block lz:if="{{userAddress$mobile}}">
				{{userAddress$mobile}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$mobile}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="userAddress.mobile" id="mobile"  value="{{lz.htm(userAddress.mobile)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入收货地址的电话号码</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{mobile_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="mobile">{{userAddress.mobile}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.mobile$||userAddress.mobile)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$mobile}}
	{{lz.set("realName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"realName"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"realName"))))}}
	{{lz.set("realName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$realName}}
	<dl lz:if="{{realName_editable||realName_readonly}}" class="ribs realName  " major  ref="realName">
		<dt>收货姓名:</dt>
		<dd lz:if="{{realName_editable}}" input="text">
			<lz:block lz:if="{{userAddress$realName}}">
				{{userAddress$realName}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$realName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="userAddress.realName" id="realName"  value="{{lz.htm(userAddress.realName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入收货地址的收货姓名</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{realName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="realName">{{userAddress.realName}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.realName$||userAddress.realName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$realName}}
	{{lz.set("sex_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"sex"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"sex"))))}}
	{{lz.set("sex_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$sex}}
	<dl lz:if="{{sex_editable||sex_readonly}}" class="ribs sex  " major  ref="sex">
		<dt>性　　别:</dt>
		<dd lz:if="{{sex_editable}}" input="select">
			<lz:block lz:if="{{userAddress$sex}}">
				{{userAddress$sex}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$sex}}">
		 	<select class="narrow" id="sex" name="userAddress.sex">
		 		<option value="">请选择</option>
				<option value="1" selected='{{userAddress.sex=="1"?"selected":""}}'>男</option>
				<option value="2" selected='{{userAddress.sex=="2"?"selected":""}}'>女</option>
		 	</select>
	 	 </lz:block>
	 	 
	 	 <em>请选择收货地址的性别</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{sex_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="sex">{{userAddress.sex}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.sex$||userAddress.sex)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$sex}}
	{{lz.set("isDefault_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"isDefault"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"isDefault"))))}}
	{{lz.set("isDefault_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$isDefault}}
	<dl lz:if="{{isDefault_editable||isDefault_readonly}}" class="ribs isDefault  " major  ref="isDefault">
		<dt>默　　认:</dt>
		<dd lz:if="{{isDefault_editable}}" input="number">
			<lz:block lz:if="{{userAddress$isDefault}}">
				{{userAddress$isDefault}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$isDefault}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="userAddress.isDefault" id="isDefault"  value="{{lz.htm(userAddress.isDefault)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入收货地址的默认</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{isDefault_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="isDefault">{{userAddress.isDefault}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.isDefault$||userAddress.isDefault)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$isDefault}}
	{{lz.set("address_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"address"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"address"))))}}
	{{lz.set("address_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$address}}
	<dl lz:if="{{address_editable||address_readonly}}" class="ribs address  " major  ref="address">
		<dt>地　　址:</dt>
		<dd lz:if="{{address_editable}}" input="tree">
			<lz:block lz:if="{{userAddress$address}}">
				{{userAddress$address}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$address}}">
		  			<select class="tree narrow"  id="address" name="userAddress.address" action="/admin/setting/region.query.do?parenter={param}">
						<option value="{{lz.htm(userAddress.address)}}">{{userAddress.address$||userAddress.address}}</option>
					</select>			  		
	 	 </lz:block>
	 	 
	 	 <em>请选择收货地址的地址</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{address_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="address">{{userAddress.address}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/setting/region.details.html?key=userAddress.address}')">
			 {{lz.html(userAddress.address$||userAddress.address)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$address}}
	{{lz.set("detailAddress_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"detailAddress"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"detailAddress"))))}}
	{{lz.set("detailAddress_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$detailAddress}}
	<dl lz:if="{{detailAddress_editable||detailAddress_readonly}}" class="ribs detailAddress  " major  ref="detailAddress">
		<dt>详细地址:</dt>
		<dd lz:if="{{detailAddress_editable}}" input="text">
			<lz:block lz:if="{{userAddress$detailAddress}}">
				{{userAddress$detailAddress}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$detailAddress}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="userAddress.detailAddress" id="detailAddress"  value="{{lz.htm(userAddress.detailAddress)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入收货地址的详细地址</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{detailAddress_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="detailAddress">{{userAddress.detailAddress}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.detailAddress$||userAddress.detailAddress)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$detailAddress}}
	{{lz.set("cityOrigin_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"cityOrigin"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"cityOrigin"))))}}
	{{lz.set("cityOrigin_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$cityOrigin}}
	<dl lz:if="{{cityOrigin_editable||cityOrigin_readonly}}" class="ribs cityOrigin  " major  ref="cityOrigin">
		<dt>所属城市:</dt>
		<dd lz:if="{{cityOrigin_editable}}" input="tree">
			<lz:block lz:if="{{userAddress$cityOrigin}}">
				{{userAddress$cityOrigin}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$cityOrigin}}">
		  			<select class="tree narrow"  id="cityOrigin" name="userAddress.cityOrigin" action="/admin/setting/region.query.do?parenter={param}">
						<option value="{{lz.htm(userAddress.cityOrigin)}}">{{userAddress.cityOrigin$||userAddress.cityOrigin}}</option>
					</select>			  		
	 	 </lz:block>
	 	 
	 	 <em>请选择收货地址的所属城市</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{cityOrigin_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="cityOrigin">{{userAddress.cityOrigin}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/setting/region.details.html?key=userAddress.cityOrigin}')">
			 {{lz.html(userAddress.cityOrigin$||userAddress.cityOrigin)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$cityOrigin}}
	{{lz.set("fullAddress_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"fullAddress"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"fullAddress"))))}}
	{{lz.set("fullAddress_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$fullAddress}}
	<dl lz:if="{{fullAddress_editable||fullAddress_readonly}}" class="ribs fullAddress   wider" minor  ref="fullAddress">
		<dt>地址全称:</dt>
		<dd lz:if="{{fullAddress_editable}}" input="textarea">
			<lz:block lz:if="{{userAddress$fullAddress}}">
				{{userAddress$fullAddress}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$fullAddress}}">
		 	<textarea class="input wide"  id="fullAddress" name="userAddress.fullAddress" rows="5">{{userAddress.fullAddress}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入收货地址的地址全称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{fullAddress_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(userAddress.fullAddress$||userAddress.fullAddress)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$fullAddress}}
	{{lz.set("longitude_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"longitude"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"longitude"))))}}
	{{lz.set("longitude_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$longitude}}
	<dl lz:if="{{longitude_editable||longitude_readonly}}" class="ribs longitude  " major  ref="longitude">
		<dt>经　　度:</dt>
		<dd lz:if="{{longitude_editable}}" input="text">
			<lz:block lz:if="{{userAddress$longitude}}">
				{{userAddress$longitude}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$longitude}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="userAddress.longitude" id="longitude"  value="{{lz.htm(userAddress.longitude)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入收货地址的经度</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{longitude_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="longitude">{{userAddress.longitude}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.longitude$||userAddress.longitude)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$longitude}}
	{{lz.set("latitude_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"latitude"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"latitude"))))}}
	{{lz.set("latitude_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$latitude}}
	<dl lz:if="{{latitude_editable||latitude_readonly}}" class="ribs latitude  " major  ref="latitude">
		<dt>纬　　度:</dt>
		<dd lz:if="{{latitude_editable}}" input="text">
			<lz:block lz:if="{{userAddress$latitude}}">
				{{userAddress$latitude}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$latitude}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="userAddress.latitude" id="latitude"  value="{{lz.htm(userAddress.latitude)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入收货地址的纬度</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{latitude_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="latitude">{{userAddress.latitude}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.latitude$||userAddress.latitude)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$latitude}}
	{{lz.set("coordinate_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"coordinate"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"coordinate"))))}}
	{{lz.set("coordinate_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$coordinate}}
	<dl lz:if="{{coordinate_editable||coordinate_readonly}}" class="ribs coordinate   mider" major  ref="coordinate">
		<dt>坐标地址:</dt>
		<dd lz:if="{{coordinate_editable}}" input="text">
			<lz:block lz:if="{{userAddress$coordinate}}">
				{{userAddress$coordinate}}
			</lz:block>
			<lz:block lz:if="{{!userAddress$coordinate}}">
		 	<input type="text" class="input mide"  maxlength="225" name="userAddress.coordinate" id="coordinate"  value="{{lz.htm(userAddress.coordinate)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入收货地址的坐标地址</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{coordinate_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="coordinate">{{userAddress.coordinate}}</textarea>
		 		<span>
		 	
			 {{lz.html(userAddress.coordinate$||userAddress.coordinate)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$coordinate}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{userAddress.id}}" name="userAddress.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/users/useraddress.edit.html?edittype=update&id={{userAddress.id}}"'>
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					修改&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/users/useraddress.edit.html",document.title,"/admin//images/icons/Identification card.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/users/useraddress.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


</script>
</html>